<?php

class Zend_View_Helper_GetOrderInfo{
	
	public function getOrderInfo($orderid){
		
		$message='';
		
		if($orderid!=''){
		
			$order=new COrder();
		
			$orderArray=$order->getDetail($orderid);
		
			$message='<div style="border:1px #cccccc solid;padding:10px">';
		
			$message.='<div>Order id: J'.$orderArray[0]['orderid'].'</div>';
		
			$message.='<div>Order time: '.date('Y-m-d H:i:s',$orderArray[0]['add_time']).'</div>';
		
			$message.='<div>Buyer name: '.$orderArray[0]['username'].'</div>';
			
			$message.='<div><a style="color:red" href="adminb-order-more?orderid='.$orderid.'">Check it</a></div>';
		
			$message.='</div>';
		
		}
		
		return $message;
		
	}

}

